#include <stdio.h>
#define N 100
int main() 
{
    int l = 0;
    char arr[N] = {"\0"};
    gets(arr);
    l = strlen(arr);
    for (l = l -1;l>=0;l--)
    {
        putchar(arr[l]);
    }
    return 0;
}